<?php

namespace Blog\BlogBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class NewsArticlesType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('title')
            ->add('image')
            ->add('content')
            ->add('createdAt')
            ->add('authorId')
            ->add('active')
            ->add('category')
            ->add('section')
        ;
    }

    public function getName()
    {
        return 'blog_blogbundle_newsarticlestype';
    }
}
